package com.cgy.repository;

import javax.transaction.Transactional;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import com.cgy.entity.ConsumeLogs;
//日志
public interface ConsumeLogsRepository extends JpaRepository<ConsumeLogs, Integer> ,JpaSpecificationExecutor<ConsumeLogs> {
	@Query(value = "delete from ConsumeLogs WHERE lid=?1")  
    @Modifying 
    @Transactional 
	Integer deleteConsumeLogs(Integer lid);

}
